package com.yuma.threads;

public class ProrityDemo {

    public static void main(String[] args) {

        Thread t1 = new Thread(()->{
            System.out.println("A");
        },"A");
        t1.setPriority(10);

        Thread t2 = new Thread(()->{
            System.out.println("B");
        },"B");
        t2.setPriority(1);

        t2.start();
        t1.start();

        System.out.println(Thread.currentThread().getPriority());
    }
}
